package pack1015.fengzhuang;

public class App {

    public static void a(){
        Teacher teacher = new Teacher();
        teacher.age = 19;
        teacher.name = "张三";
        System.out.println(teacher.detail());
    }

    private static void b(){
        Teacher2 teacher = new Teacher2();
        teacher.setAge(18);
        teacher.setName("李四");
        System.out.println(teacher.detail());
    }

    private static void c(){
        Book book = new Book();
        book.setName("三国演义");
        book.setNumber(299);
        System.out.println(book);
    }
    public static void main(String[] args) {
        c();
    }
}